package com.swt.service.T_service.impl;

import com.swt.dao.Tdao.ShopDao;
import com.swt.domain.Shop;
import com.swt.service.T_service.ShopService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ShopServiceImpl implements ShopService {
    @Resource
    private ShopDao shopDao;


    @Override
    public boolean shopaddServic(Shop shop,int clubClubId) {
        return shopDao.shopAdd(shop,clubClubId);
    }

    @Override
    public List<Shop> shopquery(int clubClubId) {
        return shopDao.shopQuery( clubClubId);
    }

    @Override
    public List<Shop> shopquery2(int id,int clubClubId) {
        return shopDao.shopQuery2(id,clubClubId);
    }

    @Override
    public boolean shopDelate(int id) {
        return shopDao.shopDelete(id);
    }

    public ShopDao getShopDao() {
        return shopDao;
    }

    public void setShopDao(ShopDao shopDao) {
        this.shopDao = shopDao;
    }
}
